package com.ocom.company.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.company.EntityRecentAdminAccount;
import com.ocom.common.request.company.GetLoginCompanyListRequest;
import com.ocom.common.vo.company.GetLoginCompanyListVo;

import java.util.Date;
import java.util.List;

public interface RecentAdminAccountService  extends IService<EntityRecentAdminAccount> {

    boolean saveOrUpdate(Long companyId,EntityRecentAdminAccount recentAdminAccount);

    /**
     * 删除一年的数据
     * @param companyId
     * @return
     */
    boolean deleteRecent(Long companyId,Long adminId);

    List<GetLoginCompanyListVo> getLoginCompanyList(GetLoginCompanyListRequest request);

    List<GetLoginCompanyListVo> selectAdminLoginList(GetLoginCompanyListRequest request);

    List<GetLoginCompanyListVo> selectUserLoginList(Long companyId, GetLoginCompanyListRequest request);
    String getRoleName(Long role);
}
